//
//  TaskEditionViewController.h
//  MemoryTasks
//
//  Created by Philippe Bouamriou on 13/05/10.
//  Copyright 2010 Philippe Bouamriou. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "CellViewControllerForLabelAndSwitch.h"
#import "CellViewControllerForLabelAndTextField.h"
#import "CellViewControllerForThreeLabels.h"
#import "DateAndTimeSelectionViewController.h"
#import "CategoriesViewController.h"

typedef enum {
   kCellIdTaskName,
   kCellIdComment,
   kCellIdStartDate,
   kCellIdEndDateKnown,
   kCellIdEndDate,
   kCellIdEndDateEstimatedKnown,
   kCellIdEndDateEstimated,
   kCellIdEndDateAlarm,
   kCellIdCategory,
   kCellIdSubCategoryEnable,
   kCellIdSubCategory,
   kNumberOfFieldValues
} kCellIdentifier;

#define kSwitchValueOn         1
#define kSwitchValueOff        2

#define kSectionTaskNameKey    @"TaskName"
#define kSectionDatesKey       @"Dates"
#define kSectionCategoryKey    @"Category"

@interface TaskEditionViewController : UIViewController 
<UITableViewDataSource, UITableViewDelegate, 
UICellViewForLabelAndSwitchDelegate, UICellViewForLabelAndTextFieldDelegate,
DateAndTimeSelectionDelegate, CategoriesSelectionDelegate > {
   NSArray * localSectionNames;
   NSArray *sectionNames;
   NSDictionary *sections;
   UINavigationController *navController;
   UITableView *tableView;
   UIBarButtonItem *doneButton;
   NSMutableArray *fieldValues;
   CellViewControllerForThreeLabels *_startDateCellViewCtrl;
   CellViewControllerForThreeLabels *_endDateCellViewCtrl;
   CellViewControllerForThreeLabels *_endDateEstimatedCellViewCtrl;
}

@property (nonatomic, strong) IBOutlet UINavigationController *navController;
@property (nonatomic, strong) IBOutlet UITableView *tableView;
@property (nonatomic, strong) UIBarButtonItem *doneButton;



@end
